
/*-----------------------------------------------------------------------------\
|                            The Pomodoro technique                            |
|                                                                              |
| Developer: Felipe Simões Lage Gomes Duarte                                   |
|                                                                              |
| Main Project: The Pomodoro technique                                         |
| Date: 28 / maio / 2011                                                       |
| Code: Pomodoro.java                                                          |
| IDE: NetBeans IDE 7.0 (Build 201104080000)                                   |
| Java: 1.6.0_24; Java HotSpot(TM) Client VM 19.1-b02                          |
|                                                                              |
\-----------------------------------------------------------------------------*/

package pomodoro;

import gnu.saw.nativeutils.SAWNativeUtils;
import interfaces.Log;
import interfaces.SystemTrayInterface;
import java.awt.Toolkit;
import javax.swing.*;

/**
 *
 * @author felipelageduarte
 */
public class Pomodoro {

   /**
    * @param args the command line arguments
    */
   public static void main(String[] args) {
      Toolkit.getDefaultToolkit().setDynamicLayout(true);
      System.setProperty("sun.awt.noerasebackground", "true");
      JFrame.setDefaultLookAndFeelDecorated(true);
      JDialog.setDefaultLookAndFeelDecorated(true);

      try {
         UIManager.setLookAndFeel("de.muntjak.tinylookandfeel.TinyLookAndFeel");
         Log.info("Iniciando Pomodoro");      
         SAWNativeUtils.beep(10000, 2000, true);
      } catch (Exception ex) {
         Log.error(ex.toString());
      } finally {         
         new SystemTrayInterface();
      }
   }
}
